package io.renren.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.commons.tools.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* 用户
*
* @author liuyujun 384880231@qq.com
* @since 3.0 2022-01-13
*/
@Data
@ApiModel(value = "用户")
public class VillageUserDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID",hidden = true)
    private Long id;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "用户密码")
    private String password;
    @ApiModelProperty(value = "密码错误次数")
    private Integer errpassword;
    @ApiModelProperty(value = "用户手机")
    private String phone;
    @ApiModelProperty(value = "手机是否核验")
    private Boolean phoneflag;
    @ApiModelProperty(value = "用户邮箱")
    private String email;
    @ApiModelProperty(value = "邮箱是否核验")
    private Boolean emailflag;
    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "性别")
    private Integer sex;
    @ApiModelProperty(value = "证件类别")
    private Integer identification;
    @ApiModelProperty(value = "证件号码")
    private String idnum;
    @ApiModelProperty(value = "默认家乡城市代码")
    private Long defaultcityid;
    @ApiModelProperty(value = "默认家乡城市名字")
    private String defaultcity;
    @ApiModelProperty(value = "token的过期时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date tokenexptime;
    @ApiModelProperty(value = "注册时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date regtime;
    @ApiModelProperty(value = "身份")
    private Integer category;
    @ApiModelProperty(value = "业主ID/租户主ID")
    private String owner;
    @ApiModelProperty(value = "账号可用")
    private Boolean enabled;
    @ApiModelProperty(value = "图像链接")
    private String userface;
    @ApiModelProperty(value = "创建人",hidden = true)
    private String creator;
    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createDate;
    @ApiModelProperty(value = "逻辑删除",hidden = true)
    private Boolean logicalDelete;
    @ApiModelProperty(value = "党员身份")
    private Integer partyMember;
    @ApiModelProperty(value = "入党时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date joinPartyTime;

}